package com.imau.mapper;

import com.imau.bean.Dept;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

public interface DeptMapper {

    @Insert("insert into  tb_dept (dept_name) values (#{deptName})")
    int insert(Dept dept);
    @Delete("delete  from  tb_dept where did = #{did}")
    int deleteById(@Param("did") Integer did);

    Dept selectById(@Param("did") Integer did);

    /*分步查询*/
    Dept DeptAndEmpByStepOneResultMap(@Param("did") Integer did);
}
